
/* jshint esversion:6 */

/**
 * @author: errorcpp@qq.com
 */

var xwindow = ("undefined" != typeof(window)) ? window : global;
xwindow.xlib = xwindow.xlib || {};
let xlib = xwindow.xlib;

/**
 * @brief: 获取时间戳（秒级别）
 */
xlib.Timestamp = function() {
    return parseInt((new Date()).valueOf() / 1000);
};

/**
 * @brief: 获取时间戳（毫秒）
 */
xlib.TimestampMS = function() {
    return (new Date()).valueOf();
};


